package org.aiforum.web.action;

import org.aiforum.common.Response;
import org.aiforum.domain.Contact;
import org.aiforum.web.common.AiActionContext;

public class ContactAction extends AiActionContext {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
    
	//创建请求对象
	private Contact contact=new Contact();
	
	public String send(){
		Response response=contactService.save(contact);
		request.setAttribute("message", response.getMessage());
		return SUCCESS;
	}

	public Contact getContact() {
		return contact;
	}

	public void setContact(Contact contact) {
		this.contact = contact;
	}
	
	
}
